﻿using System;
using System.Collections.Generic;
using System.Text;
using Flexible.Interfaces;
using Flexible.Implementions.Editors;

namespace Flexible.Implementions.Bases
{
    static class SettingEditors
    {
        internal static ISettingEditor GetDefaultEditor(Type type)
        {
            if (type == typeof(int))
                return new Int32Editor();
            if (type == typeof(string))
                return new StringEditor();
            throw new ArgumentException();
        }
    }
}
